package com.ruoyi.erp.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 年度目标对象 erp_annual_target
 *
 * @author yanwenliang
 * @date 2024-10-17
 */
@Data
@TableName("erp_annual_target")
public class ErpAnnualTarget extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 目标id */
    @TableId(type = IdType.ASSIGN_ID)
    private String targetId;

    /** 年度 */
    @Excel(name = "年度")
    private Long year;

    /** 年度任务 */
    @Excel(name = "年度任务")
    private String yearTask;

    /** 年度目标 */
    @Excel(name = "年度目标")
    private String yearPlan;

    /** 全年业绩 */
    @Excel(name = "全年业绩")
    private BigDecimal yearPerformance;

    /** 全年利润 */
    @Excel(name = "全年利润")
    private BigDecimal yearProfit;

    /** 一季度目标 */
    @Excel(name = "一季度目标")
    private String quarter1;

    /** 一季度业绩 */
    @Excel(name = "一季度业绩")
    private BigDecimal firstPerformance;

    /** 一季度利润 */
    @Excel(name = "一季度利润")
    private BigDecimal firstProfit;

    /** 二季度目标 */
    @Excel(name = "二季度目标")
    private String quarter2;

    /** 二季度业绩 */
    @Excel(name = "二季度业绩")
    private BigDecimal secondPerformance;

    /** 二季度利润 */
    @Excel(name = "二季度利润")
    private BigDecimal secondProfit;

    /** 三季度目标 */
    @Excel(name = "三季度目标")
    private String quarter3;

    /** 三季度业绩 */
    @Excel(name = "三季度业绩")
    private BigDecimal thirdPerformance;

    /** 三季度利润 */
    @Excel(name = "三季度利润")
    private BigDecimal thirdProfit;

    /** 四季度目标 */
    @Excel(name = "四季度目标")
    private String quarter4;

    /** 四季度业绩 */
    @Excel(name = "四季度业绩")
    private BigDecimal fourthPerformance;

    /** 四季度利润 */
    @Excel(name = "四季度利润")
    private BigDecimal fourthProfit;

    /** 目标类型（0 个人 1 部门 2 组） */
    @Excel(name = "目标类型", readConverterExp = "0=,个=人,1=,部=门,2=,组=")
    private String targetType;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 小组id
     */
    private String groupId;

    /** 状态(0待审核 1审核通过 2审核不通过) */
    private String status;
    @TableLogic
    private String delFlag;
}
